﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="SystemLogSupplier.aspx.cs" Inherits="LinkCard.AdminCP.Reports.SystemLogSupplier" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript">
        function setValue(page) {
            location.href = 'report_detail.aspx?page=' + page;
        }

        var $j = jQuery.noConflict(); //set no conflict so you can use with MS AJAX.


        $j(document).ready(function () {
            $j("#<%=FromDate.ClientID %>").datepicker();
            $j("#<%=ToDate.ClientID %>").datepicker();
            //$("#datepicker").datepicker();
        });

    </script>
    <section id="content">
  <section class="container_12 clearfix">
    <section id="main" class="grid_12">
      <article>
        <div class="h1">Báo cáo log Hệ thống</div>
          <div class="box search">
            Từ ngày&nbsp;
             <input type="text" id="FromDate" runat="server">
                &nbsp;&nbsp;&nbsp;Đến ngày&nbsp; 
             <input type="text" id="ToDate" runat="server">
              &nbsp;&nbsp;&nbsp;Hành động&nbsp; 
              <select size="1" id="action" class="medium required" runat="server">
					<option value="0">Tất cả</option>				
                  <option value="Sell" selected>Sell - Bán hàng</option>
                                    <option value="Delete Pay">Delete Pay - Xoá đơn hàng</option>
                                    <option value="Delete">Delete - Xoá đại lý</option>
                                    <option value="Edit">Edit - Sửa thông tin đại lý</option>
                                    <option value="Login ShopCP">Login ShopCP - Đăng nhập Hệ thống</option>
                                    <option value="Login ShopStaff">Login ShopStaff - Đại lý đăng nhập</option>
                </select>
               &nbsp;&nbsp;&nbsp;
          <asp:Button ID="btnSearch" class="button small" Style="width: 60px;"
                                runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click"/>
        
      </div>
          <table id="table1" class="gtable sortable" >
            <thead>
              <tr>
                <th>Ngày</th>
                <th style="text-align:left">Shop</th>
                <th style="text-align:left">Thông tin</th>
                <th style="text-align:right">Số hoá đơn</th>
                <th style="text-align:right">Mã khách hàng</th>
                <%--<th style="text-align:right">Đại lý</th>--%>
                <th ></th>
              </tr>
            </thead>
            <tbody>
            <asp:Repeater ID="msgList" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td >
                                    <%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "DateLog")).ToString("dd/MM/yyyy")%>
                                </td>
                                <td align="lefy">
                                    <a href="../Supplier/supplier_edit.aspx?SupplierID=<%# DataBinder.Eval(Container.DataItem, "SupplierID")%>">Xem</a>
                                </td>
                                <td align="left">
                                    <%# DataBinder.Eval(Container.DataItem, "Info") %>
                                </td>
                                <td align="right">
                                   
                                    <%# DataBinder.Eval(Container.DataItem, "PayID") %>
                                   
                                </td>
                                <td align="right">
                                    <a href="../CRM/customers_edit.aspx?CustomerID=<%# DataBinder.Eval(Container.DataItem, "CustomerID") %>">Xem</a>
                                </td>
                               <%--  <td align="right">
                                     <a href="../User/user_edit.aspx?UserID=<%# DataBinder.Eval(Container.DataItem, "ShopStaffID") %>">
                                     <%# DataBinder.Eval(Container.DataItem, "ShopStaffID") %></a>
                                </td>--%>
                              
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr id="msgNoData" runat="server">
                        <td colspan="4" align="center">
                            Không có dữ liệu!
                        </td>
                    </tr>
              
              
            </tbody>
          </table>
          <div class="tablefooter clearfix">
            <div class="pagination" id="divPager" runat="server">
               <asp:Literal ID="PagerShow" runat="server"></asp:Literal>
               </div>
          </div>
       
      </article>
    </section>
    
  </section>
</section>
</asp:Content>
